const demoViewNodeData = [
  {
    id: 'node1',
    shape: 'circle',
    width: 50,
    height: 50,
    attrs: {
      body: {
        fill: '#F39C12',
        stroke: '#000',
        rx: 16,
        ry: 16,
      },
      label: {
        text: '下单',
        fill: '#333',
        fontSize: 18,
        fontWeight: 'bold',
        fontVariant: 'small-caps',
      },
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node2',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '获取搜索缓存',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node3',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数1',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node4',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数2',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node5',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数3',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node6',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数4',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node7',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数5',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node8',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数6',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node9',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数7',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node10',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数8',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node11',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数9',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node12',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数10',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node13',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数11',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node14',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数12',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node15',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数13',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node16',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数14',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node17',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数15',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node18',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数16',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node19',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数17',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node20',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数18',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node21',
    shape: 'rect',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#2ECC71',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数19',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
  },
  {
    id: 'node22',
    shape: 'ellipse',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#ffffff',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数10',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
    freeNode: true
  },
  {
    id: 'node23',
    shape: 'ellipse',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#ffffff',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数21',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
    freeNode: true
  },
  {
    id: 'node24',
    shape: 'ellipse',
    width: 100,
    height: 40,
    attrs: {
      body: {
        fill: '#ffffff',
        stroke: '#000',
        strokeDasharray: '10,2',
      },
      label: {
        text: '调用函数22',
        fill: '#333',
        fontSize: 13,
      }
    },
    ports: {
      groups: {
        // 输入链接桩群组定义
        in: {
          position: 'left',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
        // 输出链接桩群组定义
        out: {
          position: 'right',
          attrs: {
            circle: {
              r: 2,
              magnet: true,
              stroke: '#31d0c6',
              strokeWidth: 2,
              fill: '#fff',
            },
          },
        },
      },
      items: [
        {
          id: 'port-left',
          group: 'in',
        }, {
          id: 'port-right',
          group: 'out',
        },
      ],
    },
    freeNode: true
  },
]

export default demoViewNodeData
